package lesson14;

public class Person 
{
	String name;
	int age;
	String personalNumber;
	char sex;
	double weight;
	Person friend;
	int health =50; // from 0 to 100
	int starvationStatus = 50; // from 0 to 100
	int mentalStatus = 50; // from 0 to 100
	void eat(int foodVolume)
	{
		if(starvationStatus + foodVolume >= 100)
		{
			starvationStatus = 100;
		}
		else
		{
			starvationStatus +=foodVolume;
		}
		
	}
	
	void walk()
	{
		System.out.println(name + "is walking");
		starvationStatus-=5;
	}
	
	void growUp()
	{
		age++;
	}
	
	void dringWater(double litres)
	{
		System.out.println(name + " is drinking " + litres + "litres of water");
		starvationStatus +=litres;
	}
}
